﻿@using ExampleWebApplication.Controllers
@using ExampleWebApplication.Entities
@using ExampleWebApplication.Properties
<h2>
    @EntityFrameworkStrings.Example7
</h2>
@(Html.Telerik().Grid<Supplier>().Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(d => d.SupplierID).Width(80);
            columns.Bound(d => d.ContactName);
            columns.Bound(d => d.ContactTitle);
            columns.Bound(d => d.Address);
            columns.Bound(d => d.City);
            columns.Bound(d => d.PostalCode);
            columns.Bound(d => d.Country);
        })
        .EnableCustomBinding(true).Sortable().Filterable().Groupable().Pageable(x => x.PageSize(15))
        .DataBinding(dataBinding => dataBinding.Ajax().Select<EntityFrameworkController>(ctr => ctr.DirectUsageOfTEntityData(null))))